//
//  HWAPI.swift
//  HWanGame
//
//  Created by 王昌健 on 2021/12/8.
//  Copyright © 2021 94Wan. All rights reserved.
//

class HWGlobalConst: NSObject {
    static let shared = HWGlobalConst()
//    public var baseUrl = "https://www.77.top/"
//    public var host = "www.77.top"
    public var baseUrl = "http://beta.www.77.top/"
    public var host = "beta.www.77.top"
}
@objc class HWOCGlobalConst: NSObject {
    //测试环境
    @objc static var baseUrl = "http://beta.www.77.top/"
    //正式环境
//    @objc static var baseUrl = "https://www.77.top/"
}
let URLStr = HWGlobalConst.shared.baseUrl + "api/app/v3/?"
let URLUpLoadStr = HWGlobalConst.shared.baseUrl + "?"

let APP_Author = "_d1PPrSk6D01OHKlR2uAvg=="

let URL_GetBaseUrl = "http://work.94hwan.com/api/token.php"
/// 开通VIP信息
let URL_OpenVIP = URLStr + "ct=vip"
/// 权益弹窗
let URL_OpenVIPAlert = URLStr + "ct=vip&ac=quanyi"
/// 福利中心首页
let URL_VipCenter = URLStr + "ct=vip&ac=fuli"
/// 福利中心详情
let URL_VipCenterDetail = URLStr + "ct=vip&ac=fuli_info"
/// 福利领取
let URL_VipCenterReceive = URLStr + "ct=vip&ac=fuli_get"
/// 个人中心
let URL_MineInfo = URLStr + "ct=app2022&ac=account"
/// 是否存在新消息
let URL_MineNewMessage = URLStr + "ct=app&ac=new_message"
/// 首页标签
let URL_HomeConfig = URLStr + "ct=app2023&ac=index_config"
/// 首页
let URL_Home = URLStr + "ct=app2023"
/// 弹窗
let URL_HomeAlert = URLStr + "ct=app&ac=pop"
/// 游戏圈子
let URL_GameCircle = URLStr + "ct=dongtai"
/// 游戏圈子配置
let URL_GameCircleConfig = URLStr + "ct=dongtai&ac=config"
/// 圈子群聊
let URL_GameCircleChatGroup = URLStr + "ct=dongtai&ac=qun"
/// 圈子推荐游戏
let URL_GameCircleRecommendGame = URLStr + "ct=dongtai&ac=games"
/// 上传
let URL_Upload = URLUpLoadStr + "ct=app&ac=upload"//"https://www.77.top/?ct=app&ac=upload"
/// 发布动态
let URL_TakeALookRelease = URLStr + "ct=dongtai&ac=add"
/// 动态评论列表
let URL_TakeALookCommentList =  URLStr + "ct=dongtai&ac=pinglun"
/// 看一看详情
let URL_TakeALookDetail = URLStr + "ct=dongtai&ac=info"
/// 动态点赞或评论点赞
let URL_TakeALookZan = URLStr + "ct=dongtai&ac=zan"
/// 动态评论详情列表
let URL_TakeALookCommentDetailList = URLStr + "ct=dongtai&&ac=zipinglun"
/// 动态评论
let URL_TakeALookReplyComment = URLStr + "ct=dongtai&ac=pinglun_add"
/// 删除动态
let URL_DeleteDynamic = URLStr + "ct=dongtai&ac=del"
/// 举报
let URL_report = URLStr + "ct=gamenav&ac=report"
/// 搜索游戏
let URL_searchGame = URLStr + "ct=gamenav&ac=segame"
/// 搜索话题
let URL_searchTopic = URLStr + "ct=gamenav&ac=sesubject"

///// 直播标签
//let URL_LiveClassify = URLStr + "ct=zhibo&ac=interest"
/// 直播列表
let URL_LiveList = URLStr + "ct=zhibo"
/// 我的收藏
let URL_LiveMyFollow = URLStr + "ct=zhibo&ac=myshoucang"
/// 直播配置
let URL_LiveConfig = URLStr + "ct=zhibo&ac=config"
/// im信息
let URL_LiveLoginInfo = URLStr + "ct=zhibo&ac=login"
/// 直播间详情
let URL_LiveInfo = URLStr + "ct=zhibo&ac=info"
/// 腾讯im加密信息
let URL_SDKSigInfo = URLStr + "ct=rooms&ac=usign"
/// 游戏开播，与创建编辑房间同时使用
let URL_GameLiveOpen = URLStr + "ct=zhibo&ac=open"
/// 直播间礼物排行
let URL_GameLiveRankList = URLStr + "ct=zhibo&ac=paihang"
/// 排行榜标题
let URL_GameliveRankTitle = URLStr + "ct=zhoubo&ac=paihang_config"
/// 全部游戏
let URL_GameLiveAllGames = URLStr + "ct=zhibo&ac=all_interest"
/// 钻石余额💎
let URL_DiamondNum = URLStr + "ct=zuan&ac=zuan"
/// 送礼物
let URL_VoiceRoomSendGift = URLStr + "ct=gift&ac=give"
/// 礼物列表
let URL_VoiceRoomGiftList = URLStr + "ct=gift"
/// 直播收益
let URL_LiveAssetsInfo = URLStr + "ct=zuan&ac=wallet"
/// 游戏收益
let URL_MyAssetsInfo = URLStr + "ct=app&ac=myassets"
/// 直播间订阅
let URL_LiveFollow  = URLStr + "ct=zhibo&ac=shoucang"
/// 退出群聊
let URL_CloseGameGroup = URLStr + "ct=app2022&ac=esc_qun"
/// 获取游戏分类
let URL_GameClassify = URLStr + "ct=app&ac=fenlei"
/// 获取分类对应游戏列表
let URL_GetClassifyGameList = URLStr + "ct=app&ac=fenlei_game"
/// 游戏榜内分类
let URL_GameRankListClassify = URLStr + "ct=app&ac=fenlei"
/// 游戏榜
let URL_GameRankList = HWGlobalConst.shared.baseUrl + "?ct=app&ac=paihang"
/// 开服表
let URL_GameOpenServiceList = HWGlobalConst.shared.baseUrl + "?ct=app&ac=kf"
/// 预约榜
let URL_GameAppointmentList = URLStr + "ct=app&ac=yuyue"
/// 添加预约
let URL_AddAppointment = URLStr + "ct=app&ac=yuyue_add"
/// 游戏详情顶部数据
let URL_GameDetailTop = HWGlobalConst.shared.baseUrl + "?ct=app2021&ac=gameinfo_top"
/// 游戏详情群组信息
let URL_GameDetailGroup = URLStr + "ct=app2022&ac=game_qun"
/// 游戏详情
let URL_GameDetailInfo = HWGlobalConst.shared.baseUrl + "?ct=app2021&ac=gameinfo_content"
/// 游戏详情评论
let URL_GameDetailCommentList = HWGlobalConst.shared.baseUrl + "?ct=app2021&ac=gameinfo_pllist"
/// 游戏详情评论点赞
let URL_GameDetailCommentZan = HWGlobalConst.shared.baseUrl + "?ct=app2021&ac=pinglun_zan"
/// 游戏收藏
let URL_GameDetailCollection = HWGlobalConst.shared.baseUrl + "?ct=app&ac=shoucang_add"
/// 取消收藏
let URL_GameDetailCollectionDel = HWGlobalConst.shared.baseUrl + "?ct=app&ac=shoucang_del"
/// 获取子评论
let URL_GameCommentSonList = HWGlobalConst.shared.baseUrl + "?ct=app2021&ac=gameinfo_pllistson"
/// 发表评论
let URL_SendComment = HWGlobalConst.shared.baseUrl + "?ct=app2021&ac=gameinfo_pinglun"
/// 获取游戏详情开服表
let URL_GameDetailOpenService = HWGlobalConst.shared.baseUrl + "?ct=app&ac=game_info2"
/// 获取游戏交易
let URL_GameDetailTrade = HWGlobalConst.shared.baseUrl + "?ct=app&ac=game_info3"
/// 发布游戏评价
let URL_CommentRelease = HWGlobalConst.shared.baseUrl + "?ct=app&ac=gameinfo_pinglun"
/// 福利类目
let URL_WelfareFunc = URLStr + "ct=app2022&ac=fuli"
/// 福利活动
let URL_WelfareNews = URLStr + "ct=app&ac=huodong"
///// 每日任务
//let URL_EveryDayTask = URLStr + "ct=app2022&ac=day_renwu"
/// 成长之路
let URL_GrowPath = URLStr + "ct=app2022&ac=growth_road"
/// 省钱卡
let URL_SaveMoneyCardInfo = URLStr + "ct=app2022&ac=chaoji_card"
/// 下单
let URL_SaveMoneyPay = URLStr + "ct=app2022&ac=shengqianka_buy"
/// 领取优惠券
let URL_SaveMoneyReceiveCoupon = URLStr + "ct=app2022&ac=lingqu_coupon"
/// 每日任务
let URL_EveryDayTask = URLStr + "ct=app2022&ac=renwu"
/// 每日任务领取奖励
let URL_EveryDayTaskReceive = URLStr + "ct=app&ac=take_jiangli"
/// 会员
let URL_VIP = URLStr + "ct=app2022&ac=huiyuan"
/// 开通VIP
let URL_NewOpenVIP = URLStr + "ct=app2022&ac=huiyuan_pay"
/// 账号交易列表
let URL_AccountTradeList = URLStr + "ct=app2022&ac=trade"
/// 账号详情
let URL_TradeDetail = URLStr + "ct=app2022&ac=trade_info"
/// 邀请好友
let URL_InviteFriendInfo = URLStr + "ct=app2022&ac=friend"
/// 试玩列表
let URL_GameTestList = HWGlobalConst.shared.baseUrl + "?ct=wap&ac=renwu_list"
/// 游戏试玩奖励
let URL_GameTestReceive = HWGlobalConst.shared.baseUrl + "?ct=wap&ac=renwu_jiangli"
/// 游戏试玩领取任务
let URL_GameTestGet = HWGlobalConst.shared.baseUrl + "?ct=wap&ac=renwu_get"
/// 邀请好友发放奖励
let URL_InviteReceive = URLStr + "ct=app2022&ac=friend_jiangli"
/// 云游戏
let URL_CloudGame = URLStr + "ct=app2022&ac=yunphone"
/// 云游戏状态
let URL_CloudGameStatus = URLStr + "ct=app2022&ac=yunphone_status"
/// 邀请好友点击发放按钮 请求列表
let URL_InviteRecord = URLStr + "ct=app&ac=invite_record"
/// 查看邀请好友累充金额
let URL_InviteRecharge = URLStr + "ct=app2022&ac=friend_info"
/// 邀请好友查看发放记录
let URL_InviteSendRecord = URLStr + "ct=app2022&ac=friend_coin_fenpei"
/// 礼包中心
let URL_GiftBagCenterList = URLStr + "ct=app&ac=lb"
/// 礼包详情
let URL_GiftBagCenterDetail = URLStr + "ct=app&ac=game_lb"
/// 礼包领取
let URL_GiftBagReceive = URLStr + "ct=app&ac=get_lb"
/// 社区顶部信息
let URL_GetGameCommunityTop = URLStr + "ct=shequ&ac=index"
/// 社区
let URL_GetGameCommunityList = URLStr + "ct=shequ&ac=news"
/// 社区文章详情
let URL_GetGameCommunityDetail = URLStr + "ct=shequ&ac=news_info"
/// 社区文章详情评论
let URL_GetGameCommunityDetailComment = URLStr + "ct=shequ&ac=pinglun"
/// 社区发布文章
let URL_CommunityRelease = URLStr + "ct=shequ&ac=add"
/// 社区文章点赞
let URL_CommunityZan = URLStr + "ct=shequ&ac=good"
/// 游戏详情标签
let URL_GameDetailTag = URLStr + "ct=shequ&ac=game_biaoqian"
/// 社区关注
let URL_CommunityFollow = URLStr + "ct=shequ&ac=guanzhu"
/// 社区列表
let URL_CommunityAllList = URLStr + "ct=shequ&ac=lists"
/// 互动消息回复列表
let URL_CommunityReplyMessage = URLStr + "ct=shequ&ac=my_huifu"
/// 我的帖子
let URL_CommunityInteractPosts = URLStr + "ct=shequ&ac=my"
/// 推荐群聊
let URL_GroupChatRecommend = URLStr + "ct=app2022&ac=qun_tuijian"
/// 添加评论
let URL_CommunitCommentAdd = URLStr + "ct=shequ&ac=pinglun_add"
/// 删除文章
let URL_CommunitDelete = URLStr + "ct=shequ&ac=del"
/// 扫码登录
let URL_ScanLogin = URLStr + "ct=app2022&ac=saoyisao"
/// qq小游戏列表 sort 排序   热门0  最新1
let URL_QQGameList = URLUpLoadStr + "ct=qqgame"
/// 统计
let URL_QQUpLoad = URLUpLoadStr + "ct=qqgame&ac=login"
/// 跳转
let URL_GoTo = HWGlobalConst.shared.baseUrl + "applogin.php?goto="
//MARK: 新增接口
/// 首页资讯
let URL_HomeInfomation = URLStr
/// Tab游戏:黑神话*悟空
let URL_HomeWuKong = URLStr + "ct=gamenav&ac=index"
/// 新首页推荐
let URL_NewHomeRecommend = URLStr + "ct=gamenav&ac=home"
/// 游戏社区攻略
let URL_StrategyInfo = URLStr + "ct=shequ&ac=news&type=3"
/// 资讯评论列表
let URL_InfoCommitList = URLUpLoadStr + "ct=aznews&ac=comment"
/// 提交资讯评论
let URL_InfoCommitAdd = URLUpLoadStr + "ct=aznews&ac=add"
/// 资讯/资讯评论 点赞
let URL_InfoLike = URLStr + "ct=news&ac=zan"
/// 资讯收藏
let URL_InfoCollect = URLStr + "ct=news&ac=shoucang"
